package gizwits.centerair.way;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import gizwits.kit.Address;
import gizwits.kit.HttpKit;

//"did":"device1",
//"homeId":"123456",
//“temp”:26,
//"speed":0,// 0-自动,2-低速,3-中速,4-高速,5-无风,6-超强,7-强劲
//"mode":0, //0-制冷,1-制热,2-抽湿,3-送风, 5-智能, 6-睡眠

public class Control {

	public static void main(String[] args){
		Map<String, Object> params = new HashMap<>();
		JSONObject json = new JSONObject();
		params.put("method", "controlService");
		json.put("did", 188272);
		json.put("homeId", 978797);
		json.put("temp", 25);
		json.put("speed", 2);
		json.put("mode", 0);
		json.put("power", 1);
		params.put("result", json);
		String result = HttpKit.post(Address.cenac_local, params);
	}
}
//>
//method:controlService
//2016-10-13 18:27:43,122 WARN [com.xpg.mca.service.IService] 39 - <requestParams：RequesParameterVo [method=controlService, homeId=null, homeName=null, type=null, value=null, uid=null, name=null, floors=null, floorNo=null, roomName=null, roomId=null, did=null, pic=null, bind=null, unbind=null, code=null, patternId=null, patternName=null, is_on=null, result={"brightPower":0,"brightSleep":0,"close_wet_temp":0,"deviceName":"空调","deviceType":0,"did":166008,"economize":0,"errorCode":0,"homeId":978317,"isOnline":1,"is_open_wet":0,"mode":4,"open_wet_temp":0,"power":0,"roomId":"978317-1-5A-1","roomTemp":25,"seq":3,"speed":5,"swing":0,"temp":21,"usedTime":0,"wet":0}, deviceName=null, sleepId=null, sleepName=null, temp=null, startDate=null, endDate=null, day=null, open=null, token=null, ssid=null]>
//2016-10-13 18:27:43,135 INFO [com.xpg.mca.util.AboutMidea.MideaCMD] 52 - <控制用户设备：3C000092000000000000000002020000BF010000B8690200010000001800000003000000080000000000000000000000000000000000040515000000>
//435) <> controlDevice:158136

//3C000092000000000000000002020000C5010000B8690200010000001800000003000000080000000000000000000000000000000000040515000000>
//3C000092000000000000000002020000C3010000B8690200010000001800000003000000080000000000000000000000000000000000040515000000>
//3C000092000000000000000002020000C1010000B8690200010000001800000003000000080000000000000000000000000000000000040515000000>
//3C000092000000000000000002020000BF010000B8690200010000001800000003000000080000000000000000000000000000000000040515000000>